import threading,time

text = ''
def getin():
    global text
    while True:
        text = input('pleases input:')


def putout():
    global text
    while True:
        if text:
            if text == 'exit':
                threading.
            print(text)
            text = ''

def main():
    i = threading.Thread(target=getin)
    o = threading.Thread(target=putout)
    o.start()
    i.start()


main()